﻿using System;

class BitOfPositionP
{
    static void Main()
    {
        Console.Write("Enter number: ");
        int number = int.Parse(Console.ReadLine());

        Console.Write("Enter position number: ");
        int position = int.Parse(Console.ReadLine());

        int i = 1;
        int mask = i << position;
        Console.WriteLine((mask & number) == 0 ? false : true );
    }
}

